fd = open('test.txt', mode='rb')
data = fd.read()
print(data)
print(data.decode())
